package com.regex.web.entity.community;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.entity.AutoIdBaseEntity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Clun
 * @since 2020-11-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_article_key_word")
public class ArticleKeyWordDTO extends AutoIdBaseEntity implements Cloneable {

    private static final long serialVersionUID = 1L;

    /**
     * 关键字
     */
    @TableField("key_word")
    private String keyWord;

    /**
     * 状态（0停用 1启用）
     */
    @TableField("is_used")
    private String isUsed;

    /**
     * 创建人
     */
    @TableField("create_by")
    private Long createBy;
    
    @TableField(exist = false)
    private String createName;


    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }


	private static ArticleKeyWordDTO articleKeyWordDTO = new ArticleKeyWordDTO();
    
    public static ArticleKeyWordDTO getInstance() {
        try {
            return (ArticleKeyWordDTO) articleKeyWordDTO.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return new ArticleKeyWordDTO();
    }

}
